package com.bookmanger.server.service;


import com.bookmanger.pojo.DTO.*;
import com.bookmanger.pojo.Entity.*;
import com.bookmanger.pojo.VO.BorrowVO;
import com.bookmanger.pojo.VO.PrebookVO;
import com.github.pagehelper.PageInfo;
import org.apache.catalina.User;

import java.util.List;

public interface ReaderService {

  Reader updateself(Reader reader);

  List<BorrowVO> getborrows(int readerId);

  List<BorrowVO> getLossBorrows(int readerId);

  List<BorrowVO> getReturnedUnapprovedBorrows(int readerId);

  Renew renew(RenewDTO renew);

  void lossbook(int readerId, int bookId);

  void cancellossbook(int readerId, int bookId);

  List<Book> getbooks();

  void changepassword(PasswordDTO passwordDTO);

  Reader getself(int readerId);

  void returnbook(int readerId, int bookId);

  void returnbookyes(int readerId, int bookId);

  PageInfo<BorrowVO> findBorrowRecords(FindRecordDTO findRecordDTO);

  void prebook(PrebookDTO prebookDTO);

  List<PrebookVO> getPrebooks(int readerId);

  void cancelPrebook(int id);

  PageInfo<PrebookVO> getallPrebooks(FindPrebookDTO findPrebookDTO);
}
